<?php

/**
 * Description of formContent
 *
 * @author Kam
 */
class My_View_Helper_FormContent extends Zend_View_Helper_FormElement
{
    /**
     * Generates a 'text' element.
     *
     * @access public
     *
     * @param string|array $name If a string, the element name.  If an
     * array, all other parameters are ignored, and the array elements
     * are used in place of added parameters.
     *
     * @param mixed $value The element value.
     *
     * @param array $attribs Attributes for the element tag.
     *
     * @return string The element XHTML.
     */
    public function formContent($name, $value = null, $attribs = null)
    {
        $info = $this->_getInfo($name, $value, $attribs);
        extract($info); // name, value, attribs, options, listsep, disable
        
        if(!isset($attribs['class'])) {
            $attribs['class'] = '';
        }
        $attribs['class'] .= ' confirmation-text';
        
        $xhtml = '<div ' . $this->_htmlAttribs($attribs) .'>'
                . $value.'</div>';
        return $xhtml;
    }
}
